{extend name="album/album-mange"}

{block name="album"}

<!--link href="/img/file.css" rel="stylesheet" type="text/css" /-->
<script type="text/javascript" src="/static/js/swfupload.js"></script>
<script type="text/javascript" src="/static/js/swfupload.queue.js"></script>
<script type="text/javascript" src="/static/js/fileprogress.js"></script>
<script type="text/javascript" src="/static/js/handlers.js"></script>
<script type="text/javascript" src="/static/js/jquery.cookie.js"></script>
<!--script type="text/javascript" src="/js/swfupload.js"></script>
<script type="text/javascript" src="js/swfupload.queue.js"></script>
<script type="text/javascript" src="js/fileprogress.js"></script>
<script type="text/javascript" src="js/handlers.js"></script-->
<script type="text/javascript">
var swfu;
var spareSpace = 104817123;
var folderId = 2049242;
var limitType = "exe,msi,scr,cmd,bat,com,wmv,vbs";
var fileSumSize = new Array();
var fileNum = 0;
var PHPSESSION = $.cookie('PHPSESSID');
window.onload = function() {
    var settings = {
        //flash_url : "http://q.blogbus.com/static_files/js/file/swfupload.swf",
        flash_url : "/js/swfupload.swf",
        post_params: {"PHPSESSID" : PHPSESSION},
        prevent_swf_caching: false,
        file_size_limit : "5 MB",
        file_types : "*.*",
        file_types_description : "所有文件",
        file_upload_limit : 0,
        file_queue_limit : 10,
        custom_settings : {
            progressTarget : "fsUploadProgress",
            cancelButtonId : "btnCancel",
            startButtonId : "btnStart"
        },
        debug: false,
        // Button settings
        button_image_url: "http://q.blogbus.com/static_files/file/buttons_addfile.gif",
        button_width: "85",
        button_height: "30",
        button_placeholder_id: "spanButtonPlaceHolder",
        button_cursor: SWFUpload.CURSOR.HAND,
        //button_text: '<img src="images/buttons_addfile.gif" width="85" height="30" alt="添加文件" />',
        button_text_style: ".theFont { font-size: 12; text-align: left}",
        button_text_left_padding: 12,
        button_text_top_padding: 3,
        
        // The event handler functions are defined in handlers.js
        file_queued_handler : fileQueued,
        file_queue_error_handler : fileQueueError,
        file_dialog_complete_handler : fileDialogComplete,
        upload_start_handler : uploadStart,
        upload_progress_handler : uploadProgress,
        upload_error_handler : uploadError,
        upload_success_handler : uploadSuccess,
        upload_complete_handler : uploadComplete,
        queue_complete_handler : queueComplete	// Queue plugin event
    };
    swfu = new SWFUpload(settings);
};
$('li.menuFileClass').addClass('actived');
$('a.submenuFileUpload').addClass('actived');
</script>
<style type="text/css">
.nav ul li.shangchuan a { 
  background:#fff; 
  color:#90c044; 
  -webkit-border-radius:5px 5px 0 0; 
  -moz-border-radius:5px 5px 0 0; 
  border-radius:5px 5px 0 0; 
}
.content {padding-bottom:10px; }
</style>
<div class="content">
	<div class="container">
      <div class="savespace">
<span class="total-space">
			<span class="used" style='width:1%'></span></span>
			<span style="color:#90c044;">0.04M/100M</span>
		</div>      <div class="files_action">
         <!--&gt; <a href="/documents/2049242/thumbs">默认文件夹</a> --> &nbsp; 
        <!--<div class="pub_subMenuRight">
            <div class="pub_Search01" ><input name="" type="text" class="searchText" value="搜索文件名" /><input name="" type="submit" value="" class="searchButton" /></div>
        </div>-->
      </div>
      <div class="files_upload">
        <div class="sfolder"><span>选择文件夹：</span>
            <select name="FolderID" style="margin-bottom: 1px;" onchange="folderId=this.value;">
                                                <option value="2049242" selected="selected">默认文件夹</option>
                                            </select>
        </div>
        <div class="files_uploadaction" id="spanButtonPlaceHolder"></div>
        <div class="noticeInfo" id="divStatus"></div>
        <div class="clear"></div>
        
        <div class="files_upload_list " style="display:none;clear:both">
        
          <table cellpadding="0" cellspacing="0" class="pub_list01 pri_blogPostList upload-table">
            <tr>
              <th  style="width:470px;">文件名</th>
              <th style="width:210px;">状态</th>
              <th style="width:120px;text-align:right" align="right">操作 &nbsp;</th>
            </tr>
          </table>
          <div class="uploadProgress" id="fsUploadProgress"></div>
          <div class="uploadAll">
           <input type="button" onclick="swfu.startUpload();return false;" id="btnStart" style="display:none" value="全部上传" class="button"/>
           <input type="button" onclick="swfu.cancelQueue();return false;" id="btnCancel" style="display:none" value="全部取消" class="button"/>
          </div>
        </div>
        
        <div class="caution files_upload_info" style="clear:both">
            <ul>
                <li>每次上传文件不可超过10个，单个文件的大小请限制在5M。</li>
                <li>可通过<strong>鼠标框选多个文件</strong>上传，或<strong>按住Ctrl键并选择多个文件</strong>上传。</li>
            </ul>
        </div>
      </div>
    </div>
  </div>
<!-- 帮助 -->
    
		<script type="text/javascript" src="other/.com/msg_count"></script>
	<script type="text/javascript">
	$('body').click(function(e){
	if(!$(e.target).hasClass('pub_subLink') && !$(e.target).parents().hasClass('pub_dropmenu')){
	$('.pub_dropmenu').slideUp('fast');
	}
	})
	</script>

  {/block}

